Infixs\CorreiosAutomatico\Services\ShippingService C

Total Complexity 116
Dependencies 19
Dependents 5
Total lines 852
Lines of code 571
Logical lines of code 258
Comment lines 137
Methods 22
Properties 3

Methods 22

Method Rating Maintainability Complexity Lines of code
clone_options()
C
27
26 143
import_shipping_methods_by_plugin_id()
B
37 17 67
createShippingMethod()
A
46 10 38
list_shipping_methods()
A
52 8 24
import_contract_config()
S
52 7 25
calculateShippingCost()
S
47 6 36
fetchViacepAddress()
S
52 6 25
hasCorreiosAutomaticoActiveMethods()
S
57 6 16
fetchAddress()
S
60 6 15
getStateByPostcode()
S
43 4 42
getCeintByPostCode()
S
45 3 39
getAddressByPostcode()
S
61 3 13
get_compatible_methods()
S
55 2 22
createDefaultShippingZone()
S
62 2 12
postcodeMatchRange()
S
70 2 6
getCityByPostcode()
S
75 2 4
getAvailableZoneMethods()
S
60 1 14
hasMethodsToImport()
S
67 1 8
disable_shipping_method()
S
69 1 7
getAvailableZoneCorreiosMethods()
S
70 1 6
calculateShippingByMethod()
S
75 1 4
__construct()
S
74 1 5